<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue3基础语法</title>
</head>

<body>
<p>根组件模板</p>
<div id="app">
    <button @click="count++">{{ count }}</button>
</div>
</body>
<script src="../libs/vue.global.min.js"></script>
<script>
    const {createApp, ref} = Vue;
    const app = createApp({
            data() {
               return {
                   count: 0
            }
        },
        template: `<button @click="count++">{{ count }}</button>`
    });
    app.mount("#app")
</script>

</html>